﻿using System;

namespace CommandRunner.Model
{
    [Serializable]
    public class CommandResult
    {
        /// <summary>
        /// A reference to the description of the command which will be run
        /// </summary>
        public SimpleCommand Command;

        /// <summary>
        /// The ID of the command so that it can be tracked between the client and the server
        /// </summary>
        public Guid CommandId;

        /// <summary>
        /// The status of the command to be run
        /// </summary>
        public CommandExecutionStatus Status;

        /// <summary>
        /// Output of the command STDOUT on success, STDERR of failure
        /// </summary>
        public string Output;
    }
}
